Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: README.md

Issue 29333291: Noissue - Improve documentation for linkify filter (Closed)
Patch Set: Created Jan. 7, 2016, 3:01 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.md
diff --git a/README.md b/README.md
index 3f7656f4c2bf10e7352cffab64fb4bb019be9bf6..5101fc3d77916b9e7a02545e0f798f31cc87722f 100644
--- a/README.md
+++ b/README.md
@@ -269,9 +269,11 @@ Following custom filters can be used:
unique for the page but otherwise is only seen by the translators. Optionally
a comment (description) can be specified to help provide the translators with
additional context.
-* `linkify(url)`: generates an `<a href="...">` tag for the URL. If the URL is
- a page name it will be converted into a link to the most appropriate page
- language.
+* `linkify(url, locale=None, **attrs)`: generates an `<a href="...">` tag for
+ the URL. If the URL is a page name it will be converted into a link to the
+ most appropriate page language. The language used can also be specified
Sebastian Noack 2016/01/09 00:09:19 "most appreciate language" sounds rather vague. It
+ manually with the locale parameter. Any further keyword arguments passed
+ are turned into additional HTML attributes for the tag.
* `toclist(html)`: extracts a list of headings from HTML code, this can be used
to generate a table of contents.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld