GuildWiki has been locked down: anonymous editing and account creation are disabled. Current registered users are unaffected. Leave any comments on the Community Portal.

Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

User:Mendel/NickDoc

From GuildWiki
(Redirected from User:M.mendel/NickDoc)
Jump to: navigation, search

This is a set of templates designed to allow for nice presentation of theNicholas the Traveler information, based on Nicholas the Traveler/Past Collections. A date/time or date/time offset can always be used as parameter. (Demonstration data is 1 week old.)

User:M.mendel/NickLine grabs the requisite table line:

User:M.mendel/NickData has two parameters: date and column. It provides the basis for a set of utility templates that can be used to insert the values easily into our wikitext.

Templates like {{NickQuantity}} or {{NickMap}} then present the data. ( User:M.mendel/NickQuantity, User:M.mendel/NickMap )

Note: As this is a demo, most values don't have template pages yet, but the code from the Quantity template provides a blueprint.

  • Item Quantity:
  • Item:
  • Item type:
  • Item campaign:
  • Location:
  • Location campaign:
  • Map pagename:

Map mods are then, of course, easy:

[[{{NickMap}}|thumb|right|Thumbnail]]
[[{{NickMap}}|50x50px|{{NickLocation}}]]

[[|thumb|right|Thumbnail]] [[|50x50px|]]


Examples (see in comparison User:Dr ishmael/Nicholas the Traveler test):

Nicholas the Traveler is collecting {{NickQuantity}} {{NickItem}} in {{NickLocation}} this week.  

Nick says:
{{NickDialogue}}

Nick is in {{NickLocation}} this week, scrounging for {{NickItem}}.  He wants {{NickQuantity}} of them per gift.

Nicholas the Traveler is collecting in this week.

Nick says: Talk:Nicholas the Traveler/Past Dialogues/tmp

Nick is in this week, scrounging for . He wants of them per gift.


Last weekend, Nicholas travelled from {{NickLocation|-1week}} to {{NickLocation}}.

Last weekend, Nicholas travelled from to .


This solution avoids possible namespace clashes, since the Template: namespace is the "variable" namespace. It is not necessary to call a template that produces no text and whose deeper meaning in relation to the rest of the page is hidden.

Best of it, the system uses two pages we're maintaining right now anyway!

ToDo: Provide for unknown data.