Difference between revisions of "Template:Nicholas the Traveler"

From GuildWiki
Jump to: navigation, search
(reverting back to an index-based query)
m (properties are case-sensitive?)
Line 1: Line 1:
 
<div style="font-size:0.7em;line-height:1em;text-align:right;">
 
<div style="font-size:0.7em;line-height:1em;text-align:right;">
 
Last [{{fullurl:{{FULLPAGENAME}}|action=purge}} update]: {{CURRENTDAYNAME}}, {{CURRENTTIME}} (UTC)</div>
 
Last [{{fullurl:{{FULLPAGENAME}}|action=purge}} update]: {{CURRENTDAYNAME}}, {{CURRENTTIME}} (UTC)</div>
<onlyinclude>{{#ifexpr:{{Nicholas the Traveler/index|{{{1|}}}}} > {{#ask:[[Traveler index2::+]]|?Traveler index2|limit=137|format=max}}
+
<onlyinclude>{{#ifexpr:{{Nicholas the Traveler/index|{{{1|}}}}} > {{#ask:[[traveler index2::+]]|?traveler index2|limit=137|format=max}}
 
| {{#widget:TravelerUnknown}}
 
| {{#widget:TravelerUnknown}}
 
| {{#ask: [[Traveler index2::{{Nicholas the Traveler/index|{{{1|}}}}}]] | ?Traveler quantity | ?Traveler location | format=template | template=Nicholas the Traveler/Main Page | link=none }}
 
| {{#ask: [[Traveler index2::{{Nicholas the Traveler/index|{{{1|}}}}}]] | ?Traveler quantity | ?Traveler location | format=template | template=Nicholas the Traveler/Main Page | link=none }}

Revision as of 20:35, 12 February 2012

Last update: Wednesday, 16:17 (UTC)

Expression error: Unrecognized punctuation character "{".

Usage

{{Nicholas the Traveler}} 
displays the current item/location for Nicholas the Traveler
{{Nicholas the Traveler| date and time}} 
same as above, but for the given date and time

Notes

  • When a new week begins, the template will return a special result to help users enter that week's information.
    • The result will look like this: unknown; click here to add this week's info
    1. Click on "click here" and a small form will pop up.
    2. Enter the name of the item Nick is collecting this week. (The form uses the wiki's auto-complete functionality to help users find the correct spelling of the item name.)
    3. Press "Enter," click "Go," or click on an item in the auto-complete list.
    4. The form will redirect to the edit form for the item's article. The [[../editintro|/editintro]] template will be displayed above the edit box, which gives instructions on how to add Nick's info to the article.
    5. After adding the traveler * parameters to the infobox and saving the page, this template will automatically update with the new info.
  • To add the information manually, you can simply edit the item's page directly and add the following parameters to the ItemInfo template:
 | traveler date = YYYYMMDD
 | traveler date2 = YYYYMMDD
 | traveler date3 = YYYYMMDD
 | traveler date4 = YYYYMMDD
 | traveler location = <area>
 | traveler quantity = #
  • The [[../index|/index]] template assumes a repeating cycle of 137 weeks.
  • MediaWiki can take up to an hour to update the information.

Examples

Today: {{Nicholas the Traveler}}
Next week: {{Nicholas the Traveler|+1 week}}
2 May 2010: {{Nicholas the Traveler|2 May 2010 18:00 EST}}
Today: Expression error: Unrecognized punctuation character "{".
Next week: Expression error: Unrecognized punctuation character "{".
2 May 2010: Expression error: Unrecognized punctuation character "{".