Difference between revisions of "Template:create"
(Does anyone know how we can include the text in the "pre" tag from this template by calling the template itself (so that the documentation self-updates?) I can't figure out a way to get it into the "pre" without the calls themselves not functioning) |
(Mention the date format we want; mention {{}} and ~; duplicate the text for the template view) |
||
| (8 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{comic | <includeonly>{{comic | ||
| number = | | number = | ||
| − | | date = | + | | date = <!-- Click on the "All Comics" button in the sidebar on the left and find this comic in the list. The date is in the rightmost column, in the form YYYY-MM-DD. Please replace this comment with the date in Mmmm D, YYYY format. --> |
| title = | | title = | ||
| image = | | image = | ||
| − | |||
| titletext = | | titletext = | ||
}} | }} | ||
| Line 14: | Line 13: | ||
<!-- The transcript can be found in a hidden <div> element on the xkcd comic's html source, with id "transcript". | <!-- The transcript can be found in a hidden <div> element on the xkcd comic's html source, with id "transcript". | ||
-- Tip: Use colons (:) in the beginning of lines to preserve the original line breaks. | -- Tip: Use colons (:) in the beginning of lines to preserve the original line breaks. | ||
| − | -- Any actions or descriptive lines in [[double brackets]] should be reduced to [single brackets] to avoid wikilinking | + | -- Any actions or descriptive lines in [[double brackets]] should be reduced to [single brackets] to avoid wikilinking. |
| − | -- Do not include the title text again here --> | + | -- Similarly for {{}}. Be careful to escape multiple ~s with <nowiki></nowiki>. |
| + | -- Do not include the title text again here. --> | ||
| − | {{ | + | {{comic discussion}} |
| − | <!-- Include any categories below this line--></includeonly><noinclude> | + | <!-- Include any categories below this line. --></includeonly><noinclude> |
See [[mw:Manual:Creating pages with preloaded text]] and [[mw:Manual:Parameters to index.php#Options affecting the edit form]]. The following is the text preloaded by this template: | See [[mw:Manual:Creating pages with preloaded text]] and [[mw:Manual:Parameters to index.php#Options affecting the edit form]]. The following is the text preloaded by this template: | ||
| Line 25: | Line 25: | ||
{{comic | {{comic | ||
| number = | | number = | ||
| − | | date = | + | | date = <!-- Click on the "All Comics" button in the sidebar on the left and find this comic in the list. The date is in the rightmost column, in the form YYYY-MM-DD. Please replace this comment with the date in Mmmm D, YYYY format. --> |
| title = | | title = | ||
| image = | | image = | ||
| − | |||
| titletext = | | titletext = | ||
}} | }} | ||
| Line 38: | Line 37: | ||
<!-- The transcript can be found in a hidden <div> element on the xkcd comic's html source, with id "transcript". | <!-- The transcript can be found in a hidden <div> element on the xkcd comic's html source, with id "transcript". | ||
-- Tip: Use colons (:) in the beginning of lines to preserve the original line breaks. | -- Tip: Use colons (:) in the beginning of lines to preserve the original line breaks. | ||
| − | -- Any actions or descriptive lines in [[double brackets]] should be reduced to [single brackets] to avoid wikilinking | + | -- Any actions or descriptive lines in [[double brackets]] should be reduced to [single brackets] to avoid wikilinking. |
| − | -- Do not include the title text again here --> | + | -- Similarly for {{}}. Be careful to escape multiple ~s with <nowiki><nowiki></nowiki></nowiki>. |
| + | -- Do not include the title text again here. --> | ||
| − | {{ | + | {{comic discussion}} |
| − | <!-- Include any categories below this line--> | + | <!-- Include any categories below this line. --> |
| − | </pre></noinclude> | + | </pre> |
| + | |||
| + | [[Category:Templates]] | ||
| + | </noinclude> | ||
Revision as of 17:43, 19 April 2013
See mw:Manual:Creating pages with preloaded text and mw:Manual:Parameters to index.php#Options affecting the edit form. The following is the text preloaded by this template:
{{comic
| number =
| date = <!-- Click on the "All Comics" button in the sidebar on the left and find this comic in the list. The date is in the rightmost column, in the form YYYY-MM-DD. Please replace this comment with the date in Mmmm D, YYYY format. -->
| title =
| image =
| titletext =
}}
==Explanation==
<!-- Replace this line with the explanation! -->
==Transcript==
<!-- The transcript can be found in a hidden <div> element on the xkcd comic's html source, with id "transcript".
-- Tip: Use colons (:) in the beginning of lines to preserve the original line breaks.
-- Any actions or descriptive lines in [[double brackets]] should be reduced to [single brackets] to avoid wikilinking.
-- Similarly for {{}}. Be careful to escape multiple ~s with <nowiki></nowiki>.
-- Do not include the title text again here. -->
{{comic discussion}}
<!-- Include any categories below this line. -->
