Template:LAuto
ナビゲーションに移動
検索に移動
Available doc translations

…
The Template:LAuto/doc/ja documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
After page is saved what you see on the left will be replaced by what's shown on the right:
- {{subst:LAuto|Category:test}} = {{ACategory|Test}}
- {{subst:LAuto|:Category:test}} = {{LCategory|Test}}
- {{subst:LAuto|Help:test}} = {{LHelp|Test}}
- {{subst:LAuto|Valve Developer Community:test}} = {{LProject|Test}}
- {{subst:LAuto|test}} = {{L|Test}}
- {{subst:LAuto|Template:test}} = [[Template:test]]
Needed regex to filter out outside links
This regex will replace wikilinks on the current page with subst:LAuto template which after page save will become L* templates (see above, what the substitution does is also visible using the '差分を表示' button).
This method is usable right in the Help:Editing Toolbar under
- go to 上級 -> on the right side '検索と置換' (magnifying glass icon) -> check '正規表現で検索する' checkbox
- enter the search/replace text shown lower
- press 'すべて置換'
- check with '差分を表示' to see what was changed
- save the page
- 検索する文字列:
\[\[(?!#|File(?:[ _]talk)?:|Image(?:[ _]talk)?:|Media:|Template(?:[ _]talk)?:|MediaWiki(?:[ _]talk)?:|Talk:|Category[ _]talk:|Project[ _]talk:|Valve[ _]Developer[ _]Community[ _]talk:|Help[ _]talk:|User(?:[ _]talk)?:|c:|commons:|Dictionary:|Google:|GoogleGroups:|IMDB:|M:|Meta:|Metawikipedia:|MW:|SdkBug:|SourceForge:|Steampowered:|W:|Wiki:|WikiBooks:|Wikipedia:|Wikiquote:|Wiktionary:|WP:)(:?(?:Category|Category|Help|Project|Valve[ _]Developer[ _]Community|Special|)(?:[^\|\]]+))(\|?.*?)\]\]
- 置換後の文字列:
{{subst:LAuto|$1$2}}
Current limitations
- makes the link upper case but is not an issue if it has altname or the altname translation is being added anyway
- if link that should have _ is used _ will be replaced with spaces. Usually commands or entities will face this but those should use {{ent}} and {{cmd}} anyway so shouldn't be too much of an issue
See Also
- Project:Alternative Languages
- {{L}}
- {{LCategory}}
- {{LProject}}
- {{LHelp}}
- {{LSpecial}}
- {{ACategory}}
- {{LanguageBar}}
- {{Language}}