Template:InvisiClues/Documentation: Difference between revisions

From StrategyWiki, the video game walkthrough and strategy guide wiki
m
updating
(clarifying question usage)
m (updating)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
----
----
<includeonly>The documentation for this template is transcluded from [[Template:InvisiClues/Documentation]].  Click <span class="plainlinks">[http://strategywiki.org/w/index.php?title=Template:InvisiClues/Documentation&action=edit here]</span> to edit it.</includeonly>
<includeonly>The documentation for this template is transcluded from [[Template:InvisiClues/Documentation]].  Click <span class="plainlinks">[http://strategywiki.org/w/index.php?title=Template:InvisiClues/Documentation&action=edit here]</span> to edit it.</includeonly>
<noinclude>This documentation is transcluded into {{tl|InvisiClues}}, {{tl|Clue}}, {{tl|Question}}, and {{tl|Clues end}} so that it may be edited without requiring an update for all uses of the templates.</noinclude>
<noinclude>This documentation is transcluded into {{t|InvisiClues}}, {{t|Clue}}, {{t|Question}}, and {{t|Clues end}} so that it may be edited without requiring an update for all uses of the templates.</noinclude>
----
----
These templates are used for inserting hidden notes into pages without using templates like {{tl|spoiler}} that collapse the content itself rather than merely obscuring it.
These templates are used for inserting hidden notes into pages without using templates like {{t|spoiler}} that collapse the content itself rather than merely obscuring it.


# To open an InvisiClue, enter <code><nowiki>{{InvisiClue|title=Clue box title here}}</nowiki></code><br/>or, without the title: <code><nowiki>{{InvisiClue}}</nowiki></code>
# To open an InvisiClue, enter '''<nowiki>{{InvisiClues|title=Clue box title here}}</nowiki>''', or, without the title: '''<nowiki>{{InvisiClues}}</nowiki>'''.
# Follow this with a clue entry: <code><nowiki>{{Clue|clue text goes here}}</nowiki></code><br/>Or a question: <code><nowiki>{{Question|question=question (visible)|answer=answer (hidden)}}</nowiki></code><br/>Note that in order for questions to not break the numbering the template must run directly on at the end of the previous clue, e.g. <code><nowiki>{{clue|clue=Clue}}{{question|question=question}}</nowiki></code>
# Follow this with a clue entry: '''<nowiki>{{clue|clue text goes here}}</nowiki>''', or a question: '''<nowiki>{{question|question=visible question|answer=hidden answer}}</nowiki>'''. To set the width of the obscured answer, use the width parameter ('''<nowiki>{{question|question=visible question|answer=hidden answer|width=200px}}</nowiki>''').
# When you are finished adding clues, close the box with <code><nowiki>{{Clues end}}</nowiki></code>
# When you are finished adding clues, close the box with '''<nowiki>{{clues end}}</nowiki>'''.


Here is an example InvisiClues box:
Here is an example InvisiClues box:
Line 16: Line 16:
{{clue|Enter your text.}}
{{clue|Enter your text.}}
{{clue|When you're done click "Show preview" to preview your changes.}}
{{clue|When you're done click "Show preview" to preview your changes.}}
{{clue|When you're satisfied, click "Save page".}}{{question|question=What does "Show changes" do?|answer="Show changes" compares your text to the stored page. The stored page is on the left, in yellow, while your text is on the right, in green; red text indicates partial changes to lines that were otherwise kept. If you are creating a new page there is nothing to compare it to.}}
{{clue|When you're satisfied, click "Save page".}}
{{clue|To stop the no.s reseting, add a <nowiki><br></nowiki> to the end of the clue line and immediately add the question.}}
{{clue|To stop the numbers resetting, append the question to the end of the clue line without a line break.}}
{{question|question=What does "Show changes" do?|answer="Show changes" compares your text to the stored page.}}
{{clues end}}
{{clues end}}
<noinclude>[[Category:Template documentation|I]]</noinclude>