Difference between revisions of "Editor manual"

Line 530: Line 530:
==== Pages ====
==== Pages ====


So this is a link: [[Castles in Germany (1st edition)]]. This link is linking currently to the English page of "Castles in Germany (1st edition)", we want to link to the language we are translating in; So in this example to Polish.  
So this is a standard wiki link: [[Castles in Germany (1st edition)]]. This link is linking currently to the English page of "Castles in Germany (1st edition)", we want to link to the language we are translating in; So in this example to Polish.  


While translating the links will look like this:
While creating a all links has to use <code>[[:Template:Path]]</code> template, which generate link to page in current language of user:
<pre>
<pre>
[[Castles in Germany (1st edition)]] OR this [[Castles in Germany (1st edition)|Castles in Germany]]
[[{{Path|Castles in Germany (1st edition)}}|Castles in Germany (1st edition)]]
</pre>
</pre>


Now it needs to be changed into a link linking to the Polish version, so I put "/pl" behind the first part and change the name in the second part to the Polish name of the expansion or page.
Now (during translation) it needs to be changed into a link with Polish name (link will be automatically redirected to Polish version of page), <s>so I put "/pl" behind the first part and</s> change the name in the second part to the Polish name of the expansion or page.
<pre>
<pre>
[[Castles in Germany (1st edition)/pl|Niemieckie Zamki]]
[[{{Path|Castles in Germany (1st edition)}}|Niemieckie Zamki]]
</pre>
</pre>


Now the link will direct to the Polish version: [[Castles in Germany (1st edition)/pl|Niemieckie Zamki]].
Now the link will direct to the Polish version: [[{{Path|Castles in Germany (1st edition)}}|Niemieckie Zamki]].
 
<strong>Note:</strong> The link to Niemieckie Zamki is now linking to English, because Editor manual is in English. If you insert this link to any Polish page, it will automatically create link to [[Castles in Germany (1st edition)/pl|Niemieckie Zamki]]. Direct linking including suffix with language code is not requested now. It's recommended to use <code><nowiki>{{Path|Castles in Germany (1st edition)}}</nowiki></code> instead of <code><nowiki>Castles in Germany (1st edition)/pl</nowiki></code>


==== Timeline - Year... ====
==== Timeline - Year... ====
advancededitor, translator, writer
26,466

edits