Weekly zine/MoS: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (→‎Lead: includeonly vs onlyinclude.)
m (added full examples.)
Line 1: Line 1:
Manual of Style
== Location ==
== Location ==
Let's say that <nowiki>[[User:Alice]]</nowiki> is writing an article '''Bar'''. If she was writing for issue ''''Foo'''' of the zine, she would put her article on [[Weekly Zine/Foo/Bar]].
Let's say that <nowiki>[[User:Alice]]</nowiki> is writing an article '''Bar'''. If she was writing for issue ''''Foo'''' of the zine, she would put her article on [[Weekly Zine/Foo/Bar]].
==Lead==


==Lead==
Each article should start with a lead. This should be short and concise, about 3-5 sentances.
Each article should start with a lead. This should be short and concise, about 3-5 sentances.


The lead should be enclosed in '''<nowiki><includeonly></nowiki>''' and '''<nowiki></includeonly></nowiki>''' tags, so that it is transcluded to the master zine page (in this case <nowiki>[[Weekly Zine/Foo]</nowiki>]).
The lead should be enclosed in '''<nowiki><onlyinclude></nowiki>''' and '''<nowiki></onlyinclude></nowiki>''' tags, so that it is transcluded to the master zine page (in this case <nowiki>[[Weekly Zine/Foo]</nowiki>]).


If you need to go into detail, be sure to add the following snippet after the '''<nowiki></includeonly></nowiki>''' tag:
If you need to go into detail, be sure to add the following snippet after the '''<nowiki></includeonly></nowiki>''' tag:
Line 12: Line 13:


and continue to write the article.
and continue to write the article.


Full example to start any article page:
<pre>
<onlyinclude>
* First item summary.
* Second item summary ''[[{{subst:PAGENAME}}|.. See Full Article]]''</includeonly>
</onlyinclude>
Some links to a few more: [[Software]]
----
</pre>

Which will in turn looks something like this.. in the main index.

* First item summary.
* Second item summary ''[[Weekly zine/0|.. See Full Article]]''
----

Revision as of 04:33, 6 February 2008

Manual of Style

Location

Let's say that [[User:Alice]] is writing an article Bar. If she was writing for issue 'Foo' of the zine, she would put her article on Weekly Zine/Foo/Bar.

Lead

Each article should start with a lead. This should be short and concise, about 3-5 sentances.

The lead should be enclosed in <onlyinclude> and </onlyinclude> tags, so that it is transcluded to the master zine page (in this case [[Weekly Zine/Foo]]).

If you need to go into detail, be sure to add the following snippet after the </includeonly> tag:

<includeonly>''[[{{subst:PAGENAME}}|Full Article]]''</includeonly>

and continue to write the article.


Full example to start any article page:

 <onlyinclude>
 * First item summary. 
 * Second item summary ''[[{{subst:PAGENAME}}|.. See Full Article]]''</includeonly>
 </onlyinclude>
 Some links to a few more: [[Software]]
 ----

Which will in turn looks something like this.. in the main index.

* First item summary. 
* Second item summary .. See Full Article