User:Chao: Difference between revisions

17,076 editsJoined 5 November 2017
m (Creating user page for new user.)
 
(Easy Gallery Project | Skeleton of Thoughts)
Line 1: Line 1:
Helping out with tiny quality of life things like quality
I'm gonna use this page as a scratchpad for what I'm gonna call the <u><b>Easy Gallery Project</b></u>, a project that aims to make Galleries on this wiki easy to use, maintain, and update through the use of templates and DPL (the DynamicPageList extension).
checking and categories for all those thousands of pictures
 
that need categorization which is a lot of work
{{TOC}}
for a small group of people to do so
 
I would like to help. Is this 50 words long yet??
==Progress==
It really should be pls. I'll clean this up later, I promise.
 
<!--<span style="color:#009000; font-size:30px">COMPLETE!!!</span>-->
<span style="color:#FF0000; font-size:30px">IN PROGRESS, still untested</span>
 
==Notes to Self==
 
<b><u>List of handy DPL references:</u></b>
* https://en.wikinews.org/wiki/Wikinews:DynamicPageList
* https://www.mediawiki.org/wiki/Extension:DynamicPageList_(Wikimedia)
* http://followthescore.org/dpldemo/index.php?title=DPL:FAQ
 
<b><u>Is DPL really the right choice?</u></b>
* <span style="color:#FF0000>It could slow the wiki down.</span>
** (supposedly - test this to see if the slowdown is acceptable)
** <span style="color:#009000>allowing DPL to cache results also greatly speeds up load times</span>, especially if the content is largely static (unchanging), which it should be.
* <span style="color:#009000>It greatly reduces maintenance work.</span>
* <span style="color:#009000>It simplifies modification work.</span>
 
<b><u>What if someone wants to:</u></b>
* add a category for files (ie for BlazBlue: Cross Tag Battle or Artbook scans).
* add a corresponding subcategory on all gallery pages.
* rearrange the gallery
* change how many items per row are shown in the galleries
* change a specific gallery's number of items per row
* sort the gallery differently (ie by timestamp, alphabetical order, reverse alphabetical, etc)
 
<b><u>How much maintenance is needed?</u></b>
 
<b><u>How hard is it to add the code that's needed for a suggested change?</u></b>
 
Note: I believe it's good wikimedia practice to use only ==H2== and beyond (in essence, to avoid using =H1=)
 
 
<b><u>Other things to look into later:</u></b>
* CategoryTree extension
* https://meta.wikimedia.org/wiki/Help:Category
 
==Template:Gallery Page==
 
<b><u>Idea:</u></b> automatically check if each gallery is empty or not & if empty, skip the header.
* ie for Bullet, skip <b>XBlaze Code:Embryo</b> under <b>Story</b> since she doesn't have any pictures in that category.
* how to do this across all categories on a Gallery Page without making the template impossible to read?
* how do you do this with DPL? -> you don't. Count them with <nowiki>{{#ask}}</nowiki> <b>GO TEST THIS</b>
** <nowiki> {{#ask: [[Category:{{{1}}}]] | format = count}}</nowiki> returns a number that I can use?
 
<pre><nowiki>
would an if statement like this work?? (this is pseudocode)
{{#if: get page count | do nothing | else show header and query DPL for the gallery }}
</nowiki></pre>
 
===Usage===
<pre><nowiki>
{{Gallery Page | Character}}
</nowiki></pre>
 
* <span style="color:#009000;">Simple, I like it!</span>
* <span style="color:#FF0000>Abstracts the purpose of the page - hides how things are done.</span>
** <span style="color:#009000;">The Fix:</span> add DOCUMENTATION that's EASILY ACCESSIBLE on both Template:Gallery Page and on Template:Gallery_By_Category
** (easily noticeable link(s) to "HOW TO USE THIS GALLERY" or "HOW TO ADD A CATEGORY" on the page or something)
 
===Template===
<pre><nowiki><includeonly>
{{TOC}}
 
{{#if: page count of {{{1}}} and Main Artwork = 0 | /*do nothing*/ | /*else*/
==Main Artwork==
{{Gallery By Category|{{{1}}}|Main Artwork}}
}}
 
==Sprites==
===Battle===
===Palette References===
===Lobby Avatar===
 
==Character Crest==
 
==Arcade==
("Arcade Endings" on Noel's page)
===Calamity Trigger===
===Continuum Shift===
===Chrono Phantasma===
===Central Fiction===
 
==Story==
===Portraits===
===Calamity Trigger===
===Continuum Shift===
===Chrono Phantasma===
===Central Fiction===
===Clone Phantasma===
===XBlaze Code: Embryo===
===XBlaze Lost: Memories===
 
==Novels==
===BlazBlue: Calamity Trigger — Part 1===
===BlazBlue: Calamity Trigger — Part 2===
===BlazBlue: Continuum Shift — Part 1===
===BlazBlue: Continuum Shift — Part 2===
 
==Artwork==
===Promotional===
===Birthday===
===Special===
===Chibi===
===Unlimited VS===
===Wallpapers===
===Stickers===
 
==Production Art==
===Model Sheets===
===Early Designs===
===Storyboards===
</includeonly></nowiki></pre>
 
==Template:Gallery By Category==
 
===Usage===
 
<pre><nowiki>
{{Gallery | Cat1 | Cat2 }}
</nowiki></pre>
 
Example:
<pre><nowiki>
{{Gallery | Touya Kagari | Early Designs }}
</nowiki></pre>
 
===Template===
<pre><nowiki>
{{#tag:DynamicPageList|
category = {{{1}}}
category = {{{2}}}
namespace = file
ordermethod = sortkey
order = ascending
galleryshowfilename=no
imagesperrow=7
gallerycaption=No caption
mode=gallery
}}
</nowiki></pre>
 
 
<!--
==DPL (Dynamic Page List)==
 
<DynamicPageList>
category=Touya_Kagari
namespace=file
galleryshowfilename=no
imagesperrow=7
gallerycaption=No caption
mode=gallery
</DynamicPageList>
 
<DynamicPageList>
category=Touya_Kagari
namespace=File
format=<gallery>,%PAGE%|[[%PAGE%|%TITLE%]]\n,,</gallery>
allowcachedresults = true
</DynamicPageList>
-->

Revision as of 01:09, 7 November 2017

I'm gonna use this page as a scratchpad for what I'm gonna call the Easy Gallery Project, a project that aims to make Galleries on this wiki easy to use, maintain, and update through the use of templates and DPL (the DynamicPageList extension).

Progress

IN PROGRESS, still untested

Notes to Self

List of handy DPL references:

Is DPL really the right choice?

  • It could slow the wiki down.
    • (supposedly - test this to see if the slowdown is acceptable)
    • allowing DPL to cache results also greatly speeds up load times, especially if the content is largely static (unchanging), which it should be.
  • It greatly reduces maintenance work.
  • It simplifies modification work.

What if someone wants to:

  • add a category for files (ie for BlazBlue: Cross Tag Battle or Artbook scans).
  • add a corresponding subcategory on all gallery pages.
  • rearrange the gallery
  • change how many items per row are shown in the galleries
  • change a specific gallery's number of items per row
  • sort the gallery differently (ie by timestamp, alphabetical order, reverse alphabetical, etc)

How much maintenance is needed?

How hard is it to add the code that's needed for a suggested change?

Note: I believe it's good wikimedia practice to use only ==H2== and beyond (in essence, to avoid using =H1=)


Other things to look into later:

Template:Gallery Page

Idea: automatically check if each gallery is empty or not & if empty, skip the header.

  • ie for Bullet, skip XBlaze Code:Embryo under Story since she doesn't have any pictures in that category.
  • how to do this across all categories on a Gallery Page without making the template impossible to read?
  • how do you do this with DPL? -> you don't. Count them with {{#ask}} GO TEST THIS
    • {{#ask: [[Category:{{{1}}}]] | format = count}} returns a number that I can use?
would an if statement like this work?? (this is pseudocode)
{{#if: get page count | do nothing | else show header and query DPL for the gallery }}

Usage

{{Gallery Page | Character}}
  • Simple, I like it!
  • Abstracts the purpose of the page - hides how things are done.
    • The Fix: add DOCUMENTATION that's EASILY ACCESSIBLE on both Template:Gallery Page and on Template:Gallery_By_Category
    • (easily noticeable link(s) to "HOW TO USE THIS GALLERY" or "HOW TO ADD A CATEGORY" on the page or something)

Template

<includeonly>
{{TOC}}

{{#if: page count of {{{1}}} and Main Artwork = 0 | /*do nothing*/ | /*else*/
==Main Artwork==
{{Gallery By Category|{{{1}}}|Main Artwork}}
}}

==Sprites==
===Battle===
===Palette References===
===Lobby Avatar===

==Character Crest==

==Arcade==
("Arcade Endings" on Noel's page)
===Calamity Trigger===
===Continuum Shift===
===Chrono Phantasma===
===Central Fiction===

==Story==
===Portraits===
===Calamity Trigger===
===Continuum Shift===
===Chrono Phantasma===
===Central Fiction===
===Clone Phantasma===
===XBlaze Code: Embryo===
===XBlaze Lost: Memories===

==Novels==
===BlazBlue: Calamity Trigger — Part 1===
===BlazBlue: Calamity Trigger — Part 2===
===BlazBlue: Continuum Shift — Part 1===
===BlazBlue: Continuum Shift — Part 2===

==Artwork==
===Promotional===
===Birthday===
===Special===
===Chibi===
===Unlimited VS===
===Wallpapers===
===Stickers===

==Production Art==
===Model Sheets===
===Early Designs===
===Storyboards===
</includeonly>

Template:Gallery By Category

Usage

{{Gallery | Cat1 | Cat2 }}

Example:

{{Gallery | Touya Kagari | Early Designs }}

Template

{{#tag:DynamicPageList|
category = {{{1}}}
category = {{{2}}}
namespace = file
ordermethod = sortkey
order = ascending
galleryshowfilename=no
imagesperrow=7
gallerycaption=No caption
mode=gallery
}}